using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Unity.VisualScripting;
public class conveyorScript : MonoBehaviour
{
    private Animator ani;
    public void frameEventA()
    {
        EventBus.Trigger(MyEventNames.MyEventsNode, 1);
        ani.speed = 0;
    }
    public void frameEventB()
    {
        EventBus.Trigger(MyEventNames.MyEventsNode, 2);
        ani.speed = 0;
    }
    void Start()
    {
        ani = gameObject.GetComponent<Animator>();
        ani.speed = 0;
    }
    public void frameEndEvent()
    {
        MyEventsManager.instance.capEvents.TriggerEndOfConveyor();
        EventBus.Trigger(MyEventNames.MyEventsNode, 3);
    }
}
